<center>
    <div class="contentIsi">
    <?php $this->load->view('panel_samping')?>
    <div class="isi">
        <center>
            <br/>
            <div class="listofuser">
            <table border="1" width="95%" >
                <tr>
                    <th>Nama</th>
                    <th>NIM</th>
                    <th>Fakultas</th>
                    <th>Prodi</th>
                    <th>Tanggal</th>
                    <th>Semester</th>
                </tr>
                <?php
                if(count($row)==0)
                {
                    echo "<tr>";
                    echo "<td colspan='6'> belum ada mahasiswa yang diberi donasi</td>";
                    echo "</tr>";
                }
                    
                for($i=0;$i<count($row);$i++)
                {
                    echo "<tr>";
                    echo "<td>".$row[$i]['nama']."</td>";
                    echo "<td>".$row[$i]['nim']."</td>";
                    echo "<td>".$row[$i]['fakultas']."</td>";
                    echo "<td>".$row[$i]['prodi']."</td>";
                    echo "<td>".$row[$i]['tanggal']."</td>";
                    echo "<td>".$row[$i]['smstr']."</td>";
                    echo "</tr>";
                }
                ?>
            </table>
                <table border="1" width="95%" >
                <tr>
                    <th>Tanggal</th>
                    <th>Jumlah Tambahan</th>
                    <th>Status</th>
                    <th>Rekening</th>
                    <th>Bank</th>
                </tr>
                <?php
                if(count($row)==0)
                {
                    echo "<tr>";
                    echo "<td colspan='4'> belum ada tambahan donasi</td>";
                    echo "</tr>";
                }
                for($i=0;$i<count($row2);$i++)
                {
                    echo "<tr>";
                    echo "<td>".$row2[$i]['tanggal']."</td>";
                    echo "<td>".$row2[$i]['jumlah_tambahan']."</td>";
                    echo "<td>".$row2[$i]['status2']."</td>";
                    echo "<td>".$row2[$i]['rekening2']."</td>";
                    echo "<td>".$row2[$i]['bank2']."</td>";
                    echo "</tr>";
                }
                ?>
            </table>
            </div>
        </center>
    </div>    
    <?php $this->load->view('panel_kanan')?>
    </div>
</center>
